package CircularQueueDeom;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2024-03-15
 * Time: 15:37
 */
public class CircularQueueSpaceTest {
    public static void main(String[] args) {
        CircularQueueSpace circularQueueSpace = new CircularQueueSpace();
        circularQueueSpace.offer(1);
        circularQueueSpace.offer(2);
        circularQueueSpace.offer(3);
        //System.out.println(circularQueueSpace.poll());
        circularQueueSpace.offer(4);
        circularQueueSpace.offer(5);
        circularQueueSpace.offer(6);
        circularQueueSpace.offer(7);
        circularQueueSpace.offer(8);
        System.out.println(circularQueueSpace.Front());
        System.out.println(circularQueueSpace.Rear());
    }
}
